@import 'flex';

.showcase {
    margin: 20px 23px 0 23px;
    min-height: 80px;

    .section-header {
        line-height: 30px;
    }

    .title {
        font-size: 18px;
        color: #282828;
        font-weight: 600;
        line-height: 1.67;
        padding: 10px 0 6px 0;
    }

    .show-all {
        float: right;
        cursor: pointer;
        color: #5a5a5a;

        .icon-wrapper {
            margin: 5px 0 0 5px;
            float: right;
        }

        i {
            font-size: 18px;
        }
    }
}

.thumb-list {
        margin: 0 -4px;
        overflow: auto;

        @extend %flexbox;
        @include flex-grow(1);
        @include flex-shrink(0);
        @include flex-flow(row wrap);

        perspective: 1000px;
        transform-style: preserve-3d;

        .thumb-item {
            @include flex-grow(1);
            min-width: 250px;
            max-width: 352px;
            @include flex-shrink(0);
            text-align: center;
            position: relative;
            width: calc(25% - 11px);
            display: inline-block;
            margin: 4px;
            flex-basis: auto;
            animation: .4s ease slideImages;
            animation-fill-mode: forwards;
            -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
            background: radial-gradient(ellipse at center, #f5f5f5 0%, #d8d8d8 99%);

            &.dummy {
                min-height: 0px;
                height: 0px;
            }

            .thumb-image {
                position: relative;
                background-color: skyblue;
                width: 100%;
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center center;
                opacity: 0;
                transition: opacity .3s ease;

                &[data-loaded="true"] {
                    opacity: 1;
                }
            }

            @keyframes slideImages {
                0% {
                    transform: translateZ(30px);
                    opacity: 0;
                }
                100% {
                    transform: translateZ(0);
                    opacity: 1;
                }
            }

            .thumb-mask {
                position: absolute;
                width: 100%;
                height: 100%;
                cursor: pointer;
                text-align: center;
                opacity: 0;
                background-color: #282828;
                transition: opacity .5s ease;

                & > * {
                    display: table-cell;
                    vertical-align: middle;
                    font-size: 18px;
                    font-weight: 600;
                    color: #FFF;
                    opacity: 0;
                }
            }

            &:hover .thumb-mask {
                display: flex;
                align-items: center;
                justify-content: center;
                opacity: .8;

                & > * {
                    opacity: 1;
                }
            }

            &:hover .button-drop-down-wrapper {
                display: block;
            }

            .thumb-info {
                height: 60px;
                background-color: #FFF;
                box-shadow: 0px 1px 3.9px 0.1px rgba(4, 0, 0, 0.15);
                padding: 0 21px 0 17px;
                
                & * {
                    line-height: 60px !important;
                    vertical-align: middle;
                }

                & > a {
                    float: left;
                    left: 5px;
                    height: 60px;
                }

                .name {
                    font-size: 16px;
                    color: #5a5a5a;
                    width: 100%;
                    display: inline-block;
                    @include text-overflow();
                }

                .like-box {
                    height: 100%;
                    float: left;
                    margin-top: -2px;
                }

                .like {
                    font-size: 16px;
                    margin-right: 5px;
                    color: #FF8F9E;
                }

                .likes-count {
                    font-size: 14px;
                    float: right;
                }

                img {
                    width: 32px;
                    height: 32px;
                    border-radius: 50%;
                }
            }
        }
    }

    #user-home, #work-public, #work-upload {
        .thumb-info > a {
            display: none;
        }
    }